package main

import (
	"fmt"
)

type A struct {
	Name string
	Age  int
}

type B struct {
	Name string
	Age  int
}

type C struct {
	A
	B
}

func main() {
	var c C
	c.A.Name = "tom"
	fmt.Println(c)
}
